<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=Q::ini('custom_system/base_url')?>css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h2>退款单详细信息</h2>
<table class="form_table" width="70%">
<tr>
	<th>销售订单号</th>
	<td><h3><?=$sales_order['number']?></h3></td>
	<th>收款日期</th>
	<td><?=$sales_order['paid_time']?></td>
</tr>
<tr>
	<th>网站/店铺</th>
	<td><?=$shop['name']?></td>
	<th>交易号</th>
	<td><?=$sales_order['transaction_id']?></td>
</tr>
</table>
<h2>退款信息</h2>
<table width="100%" class="list_table">
<tr>
	<th width="50">ID</th>
	<th width="130">制单日期</th>
	<th width="180">退款账号</th>
	<th width="100">退款金额</th>
	<th width="80">退款方式</th>
	<th width="150">收款款交易号</th>
	<th width="150">退款交易号</th>
	<th width="100">退款原因</th>
	<th>备注</th>
</tr>
<?foreach ($refund as $r):?>
<tr <?if ($r['id'] == $_GET['id']):?>bgcolor="#ff8800"<?endif;?>>
	<td><?=$r['id']?></td>
	<td><?=$r['make_time']?></td>
	<td><?=$r['refund_account']?></td>
	<td><?=$r['refund_amount']?></td>
	<td><?=Helper_BSS_Normal::getIniOne('sales_order_payment_method', 'value', $r['refund_method'], 'name')?></td>
	<td><?=isset($r['receive_transaction_id']) ? $r['receive_transaction_id'] : ''?></td>
	<td><?=isset($r['refund_transaction_id']) ? $r['refund_transaction_id'] : ''?></td>
	<td><?=Helper_BSS_Normal::getIniOne('sales_refund_reason', 'value', $r['reason'], 'name')?></td>
	<td><?=$r['notes']?></td>
</tr>
<?endforeach;?>
</table>
</body>
</html>